package com.supply.supplymanage.dao;

import com.supply.supplymanage.entity.Buyer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BuyerMapper {
    //查询采购清单表
    List<Map> getAll(@Param("buycode") String buycode);
    //查询请购清单表
    List<Map> getBuyer(@Param("purcode") String purcode);
   //查询财务审批数据
    List<Map> getCaiwu(@Param("purcode") String purcode);
//修改成已发出状态
    public void update(@Param("array") String[] ids);
    //修改成审核通过状态
    public void updateBuyer(@Param("array") String[] ids);
    //修改成财务审批过状态
    public void updateCaiwu(@Param("array") String[] ids);
    int deleteByPrimaryKey(Integer buyerid);

    int insert(Buyer record);

    int insertSelective(Buyer record);

    Buyer selectByPrimaryKey(Integer buyerid);

    int updateByPrimaryKeySelective(Buyer record);

    int updateByPrimaryKey(Buyer record);
}